/**
 * @filename:PurchaseOrder Mar 11, 2024
 * Copyright(c) 2022 Wonder Co. Ltd. 
 * All right reserved. 
 */
package com.wonder.app.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**   
 * @Description:TODO(采购订单实体类)
 * 
 * @author: Wonder
 * 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_purchase_order")
@ApiModel(value="t_purchase_order对象", description="采购订单表")
public class PurchaseOrder extends Model<PurchaseOrder> {

	private static final long serialVersionUID = 1710137609970717L;
	
	@TableId(value ="id", type = IdType.AUTO)
	@ApiModelProperty(name = "id" , value = "编号")
    private Long id;
    
    @TableField(value = "billNo") 	
	@ApiModelProperty(name = "billNo" , value = "订单号")
    private String billNo;
    
    @TableField(value = "orderNo") 	
	@ApiModelProperty(name = "orderNo" , value = "合同号")
    private String orderNo;
    
    @TableField(value = "createTime") 	
	@ApiModelProperty(name = "createTime" , value = "创建日期")
    private Date createTime;
    
    @TableField(value = "purchaseDeptName")
	@ApiModelProperty(name = "purchaseDeptName" , value = "采购部门")
    private String purchaseDeptName;
    
    @TableField(value = "purchaseName") 	
	@ApiModelProperty(name = "purchaseName" , value = "采购员")
    private String purchaseName;
    
    @TableField(value = "supplierName")
	@ApiModelProperty(name = "supplierName" , value = "供应商名称")
    private String supplierName;
    
    @TableField(value = "supplierNo") 	
	@ApiModelProperty(name = "supplierNo" , value = "供应商编码")
    private String supplierNo;
    
    @TableField(value = "settle") 	
	@ApiModelProperty(name = "settle" , value = "结算方")
    private String settle;
    
    @TableField(value = "charge") 	
	@ApiModelProperty(name = "charge" , value = "收款方")
    private String charge;

    @TableField(exist = false)
    private List<PurchaseDetail> purchaseDetail;
    

	@Override
    public Serializable pkVal() {
        return this.id;
    }
   
}
